<?php if (!defined('THINK_PATH')) exit();?>
  <div class="layui-header">
    <div class="layui-logo">借书小程序</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item layui-this"><a href="<?php echo U('Index/index');?>">首页</a></li>
      <li class="layui-nav-item"><a href="<?php echo U('Member/index');?>">用户管理</a></li>

    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="<?php echo (session('headimgurl')); ?>" class="layui-nav-img">
          <?php echo (session('nickname')); ?>
        </a>
      </li>
      <li class="layui-nav-item">
        <a href="<?php echo U('Home/Public/logout');?>">退出登录</a>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item"><a href="<?php echo U('Index/gobal');?>">全局配置</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Index/pay');?>">支付配置</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('BooksBack/index');?>">图书管理</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('UnuseBack/index');?>">闲置管理</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('UnuseBack/index');?>">订单管理</a></li>
        <li class="layui-nav-item "><a href="<?php echo U('Index/index');?>">社区管理</a></li>
        <li class="layui-nav-item layui-nav-itemed">
          <dl class="layui-nav-child">
            <dd class=""><a href="<?php echo U('ShetuanBack/index',array('type'=>1));?>">&nbsp;&nbsp;&nbsp;&nbsp;书评</a></dd>
            <dd class=""><a href="<?php echo U('ShetuanBack/index',array('type'=>2));?>">&nbsp;&nbsp;&nbsp;&nbsp;话题</a></dd>
            <dd class=""><a href="<?php echo U('ShetuanBack/index',array('type'=>3));?>">&nbsp;&nbsp;&nbsp;&nbsp;问答</a></dd>
            <dd class=""><a href="<?php echo U('ShetuanBack/index',array('type'=>4));?>">&nbsp;&nbsp;&nbsp;&nbsp;写文</a></dd>
          </dl>
        </li>
      </ul>
    </div>
  </div>